package com.shkco.xbjcc.web.controller;

import com.shkco.result.JSONResult;
import com.shkco.xbjcc.dto.SmsCodeDto;
import com.shkco.xbjcc.service.ICommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/common")
public class CommonController {

    @Autowired
    private ICommonService commonService;

    @GetMapping ("/createToken/{courseId}")
    public JSONResult createToken(@PathVariable("courseId") String courseIds){
        String token = commonService.createToken(courseIds);
        return JSONResult.success(token);
    }
}
